<%-- 
    Document   : home
    Created on : 12-dic-2011, 15.51.39
    Author     : Trento
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <link rel="stylesheet" type="text/css" href="/NamibiaMedicalControl/style.css" title="Variant Stream" media="screen,projection" >
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Namibia Medical Control</title>
        </head>
        <body>
            <div id="wrapper">
                <div id="logo">
                    <h1>Namibia medical control</h1>
                    <p><h:outputText value="#{msg.sottotitolo}"/></p>
                </div>
                <hr>
                <!-- end #logo -->
                <div id="header">
                    <div id="menu">
                        <ul>
                            <li><a href="#" class="first" >Home</a></li>
                            <li class="current_page_item"><a href="#">Blog</a></li>            
                        </ul>
                    </div>
                    <!-- end #menu -->
                    <div id="search">
                        <div id="search-text">
                            <h:panelGroup rendered="#{loginBean.subview != null}">
                                <jsp:include page="${loginBean.subview}" />
                            </h:panelGroup>
                        </div>
                    </div>
                    <!-- end #search -->
                </div>
                <!-- end #header -->
                <!-- end #header-wrapper -->
                <div id="page">
                    <div id="page-bgtop">
                        <div id="content">
                            <div class="post">
                                <h2 class="title">Hai smarrito la password?</h2>
                                <p class="meta">Se hai smarrito la password compila i campi sottostanti per inviare una richiesta di recupero</p>
                                <div class="entry">
                                    <table>                                    
                                        <tr>            
                                            <td>
                                                <h:form>
                                                    <table>
                                                        <tr>
                                                            <td>Username:</td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <h:inputText id="username" required="true" value="#{rescuePasswordBean.username}"/>
                                                                <h:message for="username" styleClass="error"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>E-mail:</td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <h:inputText id="email" required="true" value="#{rescuePasswordBean.email}">
                                                                    <f:validator validatorId="EmailValidator"/> 
                                                                </h:inputText>
                                                                <h:message for="email" styleClass="error"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td><h:commandButton action="#{rescuePasswordBean.rescue}" value="Invia" type="submit"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <h:outputText rendered="#{rescuePasswordBean.success}" value="Le è stata inviata un'e-mail con la nuova password"/>
                                                                <h:outputText rendered="#{rescuePasswordBean.badData}" value="I dati immessi non corrispondono a nessun utente"/>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </h:form>
                                            </td>
                                        </tr>
                                    </table>

                                </div>                  
                            </div>
                        </div>
                        <!-- end #content -->
                        <div id="sidebar">
                            <ul>
                                <li>
                                    <jsp:include page="/subviews/language_chooser.jsp" />
                                </li>
                                <h:panelGroup rendered="#{loginBean.render}">
                                    <li>
                                        <jsp:include page="/subviews/side_reserved_menu.jsp"/>
                                    </li>
                                </h:panelGroup>
                            </ul>
                        </div>
                        <!-- end #sidebar -->
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <!-- end #page -->
                <div id="footer-bgcontent">
                    <div id="footer">
                        <p>Copyright &copy; 2011 <a href="#">Mamesoft</a>
                            Progetto Programmazione per il web A.A.2011/2012</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>
        </body>
    </html>
</f:view>